<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    var car = {
        name : "fiat",
        model : "500",
        weight : "850kg",
        color : "white",
        carweight : function () {
            return car.weight;
        },
        carcolor : function () {
            return car.color;
        }
    }
    console.log(car.name + " " + car.model + " " + car.carweight() + " " + car.carcolor() + " " + car.carcolor)
</script>
</body>
</html>